body {
    font-family: sans-serif;
    padding: 20px;
}

.controls {
    margin-bottom: 20px;
}

.search-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f4f4f4;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.search-container select,
.search-container input {
    padding: 8px;
}
.search-container input[type="text"] {
    flex: 1;
}

.container {
    display: flex;
    gap: 30px;
}

.calendar-area {
    width: 60%;
}

.schedule-list-area {
    width: 35%;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}


.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
}

#calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #ddd;
}


.calendar-cell {
    min-height: 100px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px;
    box-sizing: border-box;
    cursor: pointer;
    overflow-y: auto;
}

.calendar-cell:hover {
    background-color: #f9f9f9;
}

.calendar-cell.empty {
    background-color: #f5f5f5;
    cursor: default;
}


.schedule-item-calendar {
    font-size: 0.8em;
    background-color: #e0f7fa;
    border-radius: 3px;
    padding: 2px 4px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    cursor: pointer; 
}


#schedule-list li {
    padding: 4px 2px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

#schedule-list li:hover {
    background-color: #f4f4f4;
}


.modal-hidden {
    display: none;
}
#schedule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 30px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 400px; 
    border-radius: 8px;
}
.modal-content div {
    margin-bottom: 15px;
}
.modal-content label {
    display: block;
    margin-bottom: 5px;
}


.modal-content input[type="text"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-close-btn {
    float: right;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}

.button-group {
    display: flex;
    justify-content: flex-end; 
    margin-top: 20px;
}
.button-group button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    background-color: #007bff;
    color: white;
}
.button-group button:hover {
    background-color: #0056b3;
}

.calendar-cell.highlight {
    background-color: #fffb8f; 
    border: 2px solid #fdd835;
}